package com.sun.showcase.client.domain.mall;

import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;
import org.apache.commons.lang3.builder.ToStringBuilder;

public class SkuAttributeValue implements java.io.Serializable{
	private static final long serialVersionUID = 5454155825314635342L;
    /**
     * ID       db_column: id 
     */	
	private java.lang.String id;
    /**
     * 值       db_column: value 
     */	
	private java.lang.String value;
    /**
     * sku属性id       db_column: sku_arribute_id 
     */	
	private java.lang.String skuArributeId;

	private String goodsId;
	//columns END

	public SkuAttributeValue(){
	}

	public SkuAttributeValue(
		java.lang.String id
	){
		this.id = id;
	}

	public String getGoodsId() {
		return goodsId;
	}

	public void setGoodsId(String goodsId) {
		this.goodsId = goodsId;
	}

	public void setId(java.lang.String value) {
		this.id = value;
	}
	
	public java.lang.String getId() {
		return this.id;
	}
	public void setValue(java.lang.String value) {
		this.value = value;
	}
	
	public java.lang.String getValue() {
		return this.value;
	}
	public void setSkuArributeId(java.lang.String value) {
		this.skuArributeId = value;
	}
	
	public java.lang.String getSkuArributeId() {
		return this.skuArributeId;
	}

	public String toString() {
		return ToStringBuilder.reflectionToString(this);
	}
	
	public int hashCode() {
		return new HashCodeBuilder()
			.append(getId())
			.toHashCode();
	}
	
	public boolean equals(Object obj) {
		if(obj instanceof SkuAttributeValue == false) return false;
		if(this == obj) return true;
		SkuAttributeValue other = (SkuAttributeValue)obj;
		return new EqualsBuilder()
			.append(getId(),other.getId())
			.isEquals();
	}
}

